let $ = layui.jquery;
let jQuery=$;
let SettingData = {};//配置文件参数
let SeleteData = {};//筛选参数
let current =1;
let raw = '';//排序
let InitData={};
let table_config = {
    "header": {
        "button": [
            {
                "title": "批量删除",
                "icon": "",
                "btn_class": "btn_theme_2",
                "is_drop": 2,
                "type": "ajax",
                "url": "/admin/oldlog/batch_delete/?ids={d.id}",
                "where": "",
                "width": 0,
                "height": 0,
                "node": "admin:oldlog:batch_delete"
            }
        ],
        "tab": [
            {
                "name": "登录日志",
                "current": 1
            },
            {
                "name": "操作日志",
                "current": 2
            },
            {
                "name": "异常日志",
                "current": 3
            }
        ],
        "search": {
            "datetime": [
                {
                    "value": "create_time",
                    "label": "操作时间"
                }
            ],
            "like": "模块|控制器|方法|ip地址|IP详细地址"
        },
        "sum": []
    },
    "left": {
        "status": 2,
        "title": null,
        "options_id": null,
        "key_field": "value",
        "show_field": "label",
        "field": null,
        "type": 1,
        "url": {
            "title": "",
            "list": "/common/options/leftlists/?num=",
            "add": "",
            "edit": "",
            "delete": "",
            "width": "",
            "height": ""
        }
    },
    "source": "log_type",
    "table": {
        "button": [
            {
                "title": "删除",
                "icon": "icon-ashbin",
                "btn_class": "btn_theme_2",
                "is_drop": 2,
                "type": "ajax",
                "url": "/admin/oldlog/delete/?id={id}",
                "where": null,
                "width": 0,
                "height": 0,
                "node": "admin:oldlog:delete"
            },
            {
                "title": "查看",
                "icon": "",
                "btn_class": "btn_theme_0",
                "is_drop": 2,
                "type": "window",
                "url": "/admin/oldlog/detail/?id={d.id}",
                "where": "",
                "width": 0,
                "height": 0,
                "node": "admin:oldlog:detail"
            }
        ],
        "style": 1,
        "parent_id": "parent_id",
        "parent_name": "title",
        "limit": 30,
        "tab_sum": "/admin/oldlog/tabsum/",
        "page": true,
        "elem": "datatable",
        "height": "full-130",
        "update": "/admin/oldlog/update_field/",
        "url": "/admin/oldlog/index/",
        "cols": [
            {
                "id": "1713717304_18_1",
                "tpl": "",
                "align": "",
                "field": "type",
                "group": "",
                "title": "日志类别",
                "search": "select",
                "update": "",
                "options": "log_type",
                "show_rule": [
                    {
                        "rule_type": "tab",
                        "event_type": "in",
                        "value": "2"
                    }
                ]
            },
            {
                "id": "1713717304_18_2",
                "field": "module",
                "group": "",
                "title": "模块"
            },
            {
                "id": "1713717305_18_3",
                "field": "controller",
                "group": "",
                "title": "控制器"
            },
            {
                "id": "1713717306_18_4",
                "field": "action",
                "group": "",
                "title": "方法"
            },
            {
                "id": "1713717449_18_9",
                "field": "ip",
                "title": "ip地址"
            },
            {
                "id": "1723442818_13_8",
                "tpl": "",
                "field": "ip_address",
                "title": "IP详细地址",
                "show_rule": [
                    {
                        "rule_type": "tab",
                        "event_type": "in",
                        "value": "1"
                    }
                ]
            },
            {
                "id": "1713717306_18_5",
                "field": "method",
                "title": "请求方式"
            },
            {
                "id": "1713717314_18_7",
                "field": "create_id",
                "title": "操作人"
            },
            {
                "id": "1713717315_18_8",
                "field": "create_time",
                "title": "操作时间",
                "width": "160",
                "minWidth": "160"
            }
        ]
    }
};
let form_config = {
    detail:'/admin/oldlog/detail/',
    add:'/admin/oldlog/add/',
    edit:'/admin/oldlog/edit/',
    data:{
    "module": "",
    "controller": "",
    "action": "",
    "method": "",
    "url": "",
    "post_data": "",
    "get_data": "",
    "headers": "",
    "ip": "",
    "content": "",
    "agent": ""
},
    label_width:'',
    form_label:'form_top',
    onclick:[],
};
